#include "PhysicalEntity.h"

PhysicalEntity::PhysicalEntity(void) {
	position.set(0, 0, 0);
	orientation.set(0, 0, -1);
	up.set(0, 1, 0);
	model = NULL;
	minimum_camera_distance = 0;
	radius = 1;
}

PhysicalEntity::PhysicalEntity(const Model * Assigned_Model) {
	position.set(0, 0, 0);
	orientation.set(0, 0, -1);
	up.set(0, 1, 0);
	model = (Model*)Assigned_Model;
	minimum_camera_distance = 0;
	radius = 1;
}

PhysicalEntity::~PhysicalEntity(void)
{
}

///

void PhysicalEntity::AssignModel(const Model * Assigned_Model) {
	model = (Model*)Assigned_Model;
}

///

void PhysicalEntity::Draw() {
	this->model->Draw(position, orientation, up, scale);	
}

void PhysicalEntity::DefaultDraw() {
	this->model->Draw();
}

float PhysicalEntity::MinimumCameraDistance() {
	return minimum_camera_distance;
}